package com.go.dp.bridge;

import com.go.dp.bridge.car.Bus;
import com.go.dp.bridge.car.Moto;
import com.go.dp.bridge.car.Truck;
import com.go.dp.bridge.car.Vehicle;
import com.go.dp.bridge.engine.Engine;
import com.go.dp.bridge.engine.Engine1000;
import com.go.dp.bridge.engine.Engine2000;
import com.go.dp.bridge.engine.Engine3000;

public class Test {
	public static void main(String[] args) {
		Engine engine1000 = new Engine1000();
		Vehicle bus1000 = new Bus("bus1000", engine1000);
		bus1000.setupEngine();

		Vehicle truck1000 = new Truck("truck1000", engine1000);
		truck1000.setupEngine();

		Engine engine2000 = new Engine2000();
		Vehicle bus2000 = new Bus("bus2000", engine2000);
		bus2000.setupEngine();

		Vehicle truck2000 = new Bus("truck2000", engine2000);
		truck2000.setupEngine();

		Engine engine3000 = new Engine3000();
		Vehicle moto3000 = new Moto("moto3000", engine3000);
		moto3000.setupEngine();
	}
}
